package com.zhangpengtao.www;

public class ForDemo2 {
    public static void main(String[] args) {
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        System.out.println(4);
        System.out.println(5);
        System.out.println("------------------------");

        for(int i = 1 ; i <= 5; i++ ){
            System.out.println(i);
        }

        System.out.println("------------------------");

        for(int j = 5 ; j >= 1; j-- ){
            System.out.println(j);
        }
    }
}
